package com.lovegu.spring.ioc;

/**
 * @author 老顾
 * @title: User2
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/25 10:01
 */
public class User2 {
    private String name;

    public User2() {
        System.out.println("user无参构造方法");
    }

    public void setName(String name) {
        this.name = name;
    }

    public void show(){
        System.out.println("name="+ name );
    }
}
